<!DOCTYPE html>
<html lang="zh-CN">

<head>
    {block name='title'}
    <title>{$admin.name|default='Admin'}</title>
    {/block}
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <script>
        
    </script>
    {include file='public/head_css' /}

    {include file='public/head_js' /}
    <script></script>
</head>

<body class="index">
    <!-- 顶部开始 -->
    <div class="container">

        <div class="layui-header">

            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item layadmin-flexible" lay-unselect="">
                    <a href="javascript:;" class="left_open" title="侧边伸缩">
                        <i class="layui-icon layui-icon-shrink-right"></i>
                    </a>
                </li>

                <li class="layui-nav-item" lay-unselect="">
                    <a href="javascript:;" title="刷新" onclick="reload()">
                        <i class="layui-icon layui-icon-refresh-3"></i>
                    </a>
                </li>
                <span class="layui-nav-bar" style="left: 91px; top: 48px; width: 0px; opacity: 0;"></span>
            </ul>


            <ul class="layui-nav right" lay-filter="">
                <li class="layui-nav-item">
                    <a href="javascript:;">
                        <img src="{$admin.user.avatar|default='__ADMIN_IMAGES__/avatar.png'}" width="30px" class="user-image"
                        alt="用户头像">
                        {$admin.user.nickname|default=''}</a>
                    <dl class="layui-nav-child">
                        <!-- 二级菜单 -->
                        <dd>
                            <a onclick=xadmin.add_tab('个人资料',"{:url('admin_user/profile')}") >个人信息</a>
                        </dd>
                        <dd>
                            <a href="{:url('auth/logout')}">退出</a>
                        </dd>
                    </dl>
                </li>
                <li class="layui-nav-item to-index">
                    <a href="/" target="_blank" title="前台">前台首页</a>
                </li>
            </ul>
        </div>
    </div>
    <!-- 顶部结束 -->
    <!-- 中部开始 -->
    <!-- 左侧菜单开始 -->
    <div class="left-nav">
        <div class="logo">
            <a href="/">{$admin.name|default='Backend'}</a>
        </div>
        <div id="side-nav">
            <ul id="nav">
                {$admin.menu|default=''|raw}
            </ul>
        </div>
    </div>
    <!-- <div class="x-slide_left"></div> -->
    <!-- 左侧菜单结束 -->
    <!-- 右侧主体开始 -->
    <div class="page-content">
        <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
            <ul class="layui-tab-title">
                <li class="home">
                    <i class="layui-icon">&#xe68e;</i><cite>我的桌面</cite>
                </li>
            </ul>
            <div class="layui-unselect layui-form-select layui-form-selected" id="tab_right">
                <dl>
                    <dd data-type="this">关闭当前</dd>
                    <dd data-type="other">关闭其它</dd>
                    <dd data-type="refresh">刷新当前</dd>
                    <dd data-type="all">关闭全部</dd>
                </dl>
            </div>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <iframe src="{:url('index/welcome')}" frameborder="0" scrolling="yes" class="x-iframe"></iframe>
                </div>
            </div>
            <div id="tab_show"></div>
        </div>
    </div>
    <div class="page-content-bg"></div>
</body>

</html>